package com.cxs.client.req;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Project: wechat-push
 * @Author: cxs2014501@163.com
 * @Create: 2023/9/7 10:59
 * @Description:
 **/
@NoArgsConstructor
@Data
public class SendMsgReq {
    /**
     * touser
     */
    private String touser;
    /**
     * template_id
     */
    @JSONField(name = "template_id")
    private String template_id;
    /**
     * url
     */
    private String url;
    /**
     * topcolor
     */
    private String topcolor;
    /**
     * data
     */
    private DatasVO data;

    /**
     * DataVO
     */
    @NoArgsConstructor
    @Data
    @Builder
    @AllArgsConstructor
    public static class DatasVO {

        @JsonProperty("riqi")
        private DataVO riqi;

        @JsonProperty("beizhu")
        private DataVO beizhu;

        @JsonProperty("tiani")
        private DataVO tiani;

        @JsonProperty("low")
        private DataVO low;

        @JsonProperty("high")
        private DataVO high;

        @JsonProperty("lianai")
        private DataVO lianai;

        @JsonProperty("shengri")
        private DataVO shengri;

        @JsonProperty("caihongpi")
        private DataVO caihongpi;

        /**
         * DataVO
         */
        @NoArgsConstructor
        @Data
        @Builder
        @AllArgsConstructor
        public static class DataVO {
            /**
             * value
             */
            private String value;
            /**
             * color
             */
            private String color;
        }
    }
}
